#include "rectlight.h"
#include <QRadialGradient>
#include <QPen>

RectLight::RectLight()
{
    int size = 1000;
    QRadialGradient gradient(QPointF(size/2, size/2), size/2, QPointF(size/2, size/2));
    gradient.setColorAt(0, QColor(255, 0, 0, 0));
    gradient.setColorAt(0.7, QColor(255, 0, 0, 0));
    gradient.setColorAt(1, QColor(255, 0, 0, 255));

    this->setPen(Qt::NoPen);
    this->setBrush(gradient);
    this->setRect(-500, -500, 1000, 1000);
}
